<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
 <div id="app">
    {{message}}
  </div>


     <script src="../js/vue.js"></script>
     <script>
       const app=new Vue({
         el: '#app',
         template: `
            <div>
              <h1>{{message}}</h1>
              <span>{{message}}</span>
              <button @click="btnClick">按钮</button>
            </div>
         `,
         data: {
           message:'你好vue',
         },
         methods: {
           btnClick(){
             console.log("btnClick");
           }
         }
       })
     </script>
</body>
</html>